package com.wendu.单例模式.饿汉式;

public class Instance {
    private static Instance instance = new Instance();
    private Instance(){
        System.out.println("饿汉式单例模式");
    }
    public static Instance getInstance(){
        return instance;
    }
}
